/**
 * 
 */
package lib.graph;

/**
 * @author <a href="www.sureinterview.com">SureInterview</a>
 */
public abstract class Graph {

	public class E {
		public Object data;
		public V from;
		public V to;
		public Integer weight;

		public E(V from, V to, Integer weight) {
			this.from = from;
			this.to = to;
			this.weight = weight;
		}
	}

	public class V {
		Object data;
		String name;

		public V(String name) {
			this.name = name;
		}
	}

	public abstract E[] getEs(V v);

	public abstract V[] getV();

	public abstract void load(String graph);
}
